/**
 * 根据指定的keys从源数据中获取数据, 并返回新的对象
 */
exports.byKeysCreateNewObj = ({ keys, data, isLoseEmpty = true }) => {
	const newObj = {};
	keys.forEach((key) => {
		if (isLoseEmpty && !data[key]) return;
		newObj[key] = data[key];
	});
	return newObj;
};
